<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:import url="/jsp/pager/pagerForm.jsp"></c:import>

<form method="post" rel="pagerForm" action="<c:url value='/showSalesOrderLookup'/>"
	onsubmit="return dwzSearch(this, 'dialog');">
	<div class="pageHeader">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td><label>关键词：</label> <input type="text" name="keywords" value="${param.keywords}" /></td>
				</tr>
				<tr>
					<td><label>时间：</label> <input name="abstractMonth" class="date" type="text" value="${param.abstractMonth}"
						readonly=" true" dateFmt="yyyy-M" /></td>
					<td><label>客户名称：</label> <input type="text" name="customer" value="${param.customer}" /></td>
					<td><label>业务员：</label> <input name="salesman" type="text" value="${param.salesman}" suggestFields="salesman"
						suggestUrl="<c:url value='/showSalesmanSuggest' />" lookupGroup="" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">搜索</button>
							</div>
						</div></li>
					<li><div class="button">
							<div class="buttonContent">
								<button type="button" multLookup="salesOrderId" warn="请选择销售单">选择带回</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</div>
</form>

<div class="pageContent">

	<table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="10%"><input type="checkbox" class="checkboxCtrl" group="salesOrderId" /></th>
				<th width="10%" orderField="orderNo" class="${pageHelper.orderField eq 'orderNo' ? param.orderDirection : ''}">订单号</th>
				<th width="10%" orderField="orderDate" class="${pageHelper.orderField eq 'orderDate' ? param.orderDirection : ''}">时间</th>
				<th width="20%" orderField="customer" class="${pageHelper.orderField eq 'customer' ? param.orderDirection : ''}">客户名称</th>
				<th width="10%" orderField="salesman" class="${pageHelper.orderField eq 'salesman' ? param.orderDirection : ''}">业务员</th>
				<th width="10%" orderField="money" class="${pageHelper.orderField eq 'money' ? param.orderDirection : ''}">金额</th>
				<th width="10%" orderField="delivery" class="${pageHelper.orderField eq 'delivery' ? param.orderDirection : ''}">是否送货</th>
				<th width="10%" orderField="invoice" class="${pageHelper.orderField eq 'invoice' ? param.orderDirection : ''}">是否开发票</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${salesOrderList}" varStatus="s">
				<tr target="slt_objId" rel="${item.id }">
					<td><input type="checkbox" name="salesOrderId"
						value="{orderNo:'${item.orderNo}', orderDate:'${item.orderDate}', salesman:'${item.salesman}', customer:'${item.customer}', orderAmount:'${item.money}'}" /></td>
					<td>${item.orderNo}</td>
					<td>${item.orderDate}</td>
					<td>${item.customer}</td>
					<td>${item.salesman}</td>
					<td>${item.money}</td>
					<td>${item.delivery}</td>
					<td>${item.invoice}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>

	<c:import url="/jsp/pager/panelBar.jsp"></c:import>

</div>
